package ar.com.gestion.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class ListenerMedidas implements ActionListener{

	 public JFrame context;
	public ListenerMedidas(JFrame frame){
		context = frame;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		
		JOptionPane.showMessageDialog(null, "heigth: "+context.getHeight()+" width: "+context.getWidth());
	}

	
	
	
}
